package com.sss.gsb.web.actions.page.json;

import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.sss.gsb.client.grid.RowModel;

@ParentPackage("json")
@Result(name = "JSON", type = "json", params = { "enableGZIP", "true",
		"noCache", "true", "ignoreHierarchy", "false" })
public class InvokeLoanAccClosedAction extends
		GridBaseAction<RowModel> {

	private static final Logger log = LoggerFactory
			.getLogger(InvokeLoanAccClosedAction.class);

	/**
	 * 
	 */
	private static final long serialVersionUID = -5579735418789829395L;

	@Override
	public void doProcess() {
		log.info("invoke loan account closed data from web service");
		try {
			this.setGridModel(proxy.loadLoanAccountClosed(getParam()));
		} catch (Exception e) {
			this.setSuccess(false);
			this.setErrorMessage(e.getMessage(), e);

			log.error(" !! Exception occured... ", e);
		}
	}

}
